﻿using System;
using System.Linq;

namespace EsoLib
{
    public static class BirthDataExplain
    {
        public static int CountBirthDate(DateTime birthDate)
        {
            var result = birthDate.Day + birthDate.Month;
            var year = birthDate.Year.ToString();
            result += year.Sum(yc => Convert.ToInt32(yc + ""));
            return result;
        }

        public static string Explain(int birthDateNumber)
        {
            return birthDateNumber.ToString(); //TODO: explain with number meaning
        }
    }
}
